<template>
	<view class="content">
		<uni-table v-if="type == 1"></uni-table>
		<uni-table :tableType="2" v-else></uni-table>
	</view>
</template>

<script>
	import uniTable from '@/components/table/table.vue';
	export default{
		components: {
			uniTable
		},
		data() {
			return {
				type: 1
			}
		},
		onLoad(e) {
			if(e.type) {
				this.type = e.type;
				uni.setNavigationBarTitle({
					title: '自订课表'
				})
			}
		}
	}
</script>